﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Jzy.BLL.SiteAdmin;
using Jzy.Model.SiteAdmin;
using System.Web.UI.HtmlControls;

namespace Jzy.Web.WebSite
{
    public partial class sub : System.Web.UI.MasterPage
    {

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            CmsProfileBO profile = new CmsProfileBO();
            CmsProfileInfo info = profile.GetFirstInfo();
            if (info != null)
            {
                this.Page.Title = info.Title;
                HtmlMeta meta = new HtmlMeta();
                meta.Name = "keywords";
                meta.Content = info.Keywords;

                this.metaHolder.Controls.Add(meta);
                //this.Page.Header.Controls.Add(meta);

                meta = new HtmlMeta();
                meta.Name = "description";
                meta.Content = info.Descriptions;
                //this.Page.Header.Controls.Add(meta);
                this.metaHolder.Controls.Add(meta);

            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            
        }
    }
}
